package com.geekca.d4;

public class ArraySum {
    public static void main(String[] args) {
        /**
         * 销售额求和
         */
        int[] sales ={22,23,45,66,88};
        //总额
        int totalSale=0;
        for (int i = 0; i < sales.length; i++) {
            totalSale+=sales[i];
        }
        System.out.println("销售总额: "+totalSale);



    }
}
